package com.geek.factory;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.client.RestTemplate;

/**
 * @TODO
 * @Author tianfucai
 * 2025/6/19
 */
@SpringBootApplication
@MapperScan("com.geek.factory.mapper")

public class FactoryMainApplication8080 {
    public static void main(String[] args) {
        SpringApplication.run(FactoryMainApplication8080.class, args);
        //    /使用BCrypt密码加密器
        String pwd = new BCryptPasswordEncoder().encode("zs123456");
        System.out.println("pwd = "+pwd);
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }


}